package com.lanyanhua.job.dao;

import com.lanyanhua.job.entity.JobInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: lanyanhua
 * @Date: 2018/10/18 0018 11:34
 * @Description:
*/
@Repository
public interface JobInfoRepository extends JpaRepository<JobInfo,Integer> ,JpaSpecificationExecutor<JobInfo> {

    boolean existsByJobNameAndJobGroup(String jobName, String jobGroup);

    List<JobInfo> findByJobStatus(int i);
}
